﻿namespace SD.DataAccess
{
    using System.Linq;

    /// <summary>
    /// Country Data Access class
    /// </summary>
    public class CountryDao
    {
        /// <summary>
        /// Data Context
        /// </summary>
        private readonly ServiceDBDataContext _context = new ServiceDBDataContext();

        /// <summary>
        /// Gets the countries.
        /// </summary>
        /// <returns></returns>
        public IQueryable<Country> SelectCountries()
        {
            var query = from c in _context.Countries
                        select c;
            return query;
        }
    }
}